package com.pwc.common.Util;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;


@Component
public class Log implements ILog {
	 
	private String logName;	
	
	private List<String> logMsgList=new ArrayList<String>();

	public void addLog(String msg) {
		logMsgList.add(Time.getDateTime()+":"+msg);
	}

	public List<String> getLogs() {		
		return logMsgList;
	}

	public String getLogName() {
		return logName;
	}

	public void setLogName(String logName) {
		this.logName = logName;
	}

}
